<?
require("config.php");

$show_backnav = "product_menu";
$location_status .= "| Edit";

$menuname = array(
	"Info",
	"Pictures",
	"Color",
	"Size",
	"Specification",
	"Features",
	"Accessories",
	"Packaging",
);

$menutarget = array(
	"edit",
	"edit_pictures",
	"edit_color",
	"edit_size",
	"edit_specification",
	"edit_features",
	"edit_accessories",
	"edit_packaging",
);

$menutype = 2;
if (NULL!=$action){

for ($i=0;$i<count($Colors);$i++) {

	$Color .= "," . $Colors[$i];
}

	$Color = substr($Color,1);

   $field = array(
	"item01", 
	"item02", 
	"item03", 
	"item04", 
	"item05", 
	"item06", 
	"item07", 
	"item08", 
	"item09", 
	"item10",
	);


   $content = array(
$Item01,
$Item02,
$Item03,
$Item04,
$Item05,
$Item06,
$Item07,
$Item08,
$Item09,
$Item10,
	);

   $expression = "id=$id";

   myUpdate($table,$field,$content,$expression);


   header("location:edit_info.php?id=$id&target=edit_features&a=4");

   exit();

}


if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
  
}

$Query = "select 
item01, 
item02, 
item03, 
item04, 
item05, 
item06, 
item07, 
item08, 
item09, 
item10 
from pro_basic where id=$id Limit 1";
$r = myQuery($Query);

$Item01= $r[0][0];
$Item02= $r[0][1];
$Item03= $r[0][2];
$Item04= $r[0][3];
$Item05= $r[0][4];
$Item06= $r[0][5];
$Item07= $r[0][6];
$Item08= $r[0][7];
$Item09= $r[0][8];
$Item10= $r[0][9];

require($rela_path . "inc/header.php");

?>

<!--Content Start-->
<form name="form1" method="post" action="">

<!--hidden filed-->
<input name="action" type="hidden" value="edit">
<input name="id" type="hidden" value="<?print($id)?>">


                    <table width="95%" border="0" align="center">
                      <tr> 
                        
      <td align="right">
	  <input type="image" src="../../images/bt_cancel.gif" width="78" height="23" onclick="Redirect('product_menu.php',1);return false;"> 
        <input type="image" src="../../images/bt_save.gif" width="76" height="22"> 

      </td>
                      </tr>
                    </table>
                    <table width="95%" border="0" align="center">
                      <tr> 
                        <td align="right">&nbsp; </td>
                      </tr>
                      <tr> 
                        
      <td><table border="0" cellspacing="0" cellpadding="2">
          <tr> 
            <td class="tdheader"> Item 01 
              <input type="text" class="text" name="Item01" size="70" value="<?print($Item01)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader"> Item 02 
              <input type="text" class="text" name="Item02" size="70" value="<?print($Item02)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader"> Item 03 
              <input type="text" class="text" name="Item03" size="70" value="<?print($Item03)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader"> Item 04 
              <input type="text" class="text" name="Item04" size="70" value="<?print($Item04)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader"> Item 05 
              <input type="text" class="text" name="Item05" size="70" value="<?print($Item05)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader"> Item 06 
              <input type="text" class="text" name="Item06" size="70" value="<?print($Item06)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader"> Item 07 
              <input type="text" class="text" name="Item07" size="70" value="<?print($Item07)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader"> Item 08 
              <input type="text" class="text" name="Item08" size="70" value="<?print($Item08)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader"> Item 09 
              <input type="text" class="text" name="Item09" size="70" value="<?print($Item09)?>"> </td>
          </tr>
          <tr> 
            <td class="tdheader"> Item 10 
              <input type="text" class="text" name="Item10" size="70" value="<?print($Item10)?>"> </td>
          </tr>
        </table>
        <br></td>
                      </tr>
                    </table>
                    <table width="95%" border="0" align="center">
                      <tr> 
                        
      <td align="right">
	  
	  <input type="image" src="../../images/bt_cancel.gif" width="78" height="23" onclick="Redirect('product_menu.php',1);return false;"> 
        <input type="image" src="../../images/bt_save.gif" width="76" height="22"> 


      </td>
                      </tr>
                    </table>
                  
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</form>
            <!--Content End-->
            <?
require($rela_path . "inc/footer.php");
?>
        